﻿<%@ Control Language="C#" ClassName="RevenueFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
				<td class="literal">Order Num:</td>
				<td>
					<asp:TextBox runat="server" ID="dataOrderNum" Text='<%# Bind("OrderNum") %>' MaxLength="50"></asp:TextBox>
				</td>
			</tr>				
			<tr>
				<td class="literal">Order Date:</td>
				<td>
					<asp:TextBox runat="server" ID="dataOrderDate" Text='<%# Bind("OrderDate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataOrderDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>				
			<tr>
				<td class="literal">Customer Id:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataCustomerId" DataSourceID="CustomerIdKhachHangDataSource" DataTextField="TenKh" DataValueField="KhachHangId" SelectedValue='<%# Bind("CustomerId") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:KhachHangDataSource ID="CustomerIdKhachHangDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">Popular:</td>
				<td>
					<asp:TextBox runat="server" ID="dataPopular" Text='<%# Bind("Popular") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataPopular" runat="server" Display="Dynamic" ControlToValidate="dataPopular" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Deluxe:</td>
				<td>
					<asp:TextBox runat="server" ID="dataDeluxe" Text='<%# Bind("Deluxe") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataDeluxe" runat="server" Display="Dynamic" ControlToValidate="dataDeluxe" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Note:</td>
				<td>
					<asp:TextBox runat="server" ID="dataNote" Text='<%# Bind("Note") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox>
				</td>
			</tr>				
			<tr>
				<td class="literal">Year:</td>
				<td>
					<asp:TextBox runat="server" ID="dataYear" Text='<%# Bind("Year") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataYear" runat="server" Display="Dynamic" ControlToValidate="dataYear" ErrorMessage="Invalid value" MaximumValue="32767" MinimumValue="-32768" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Month:</td>
				<td>
					<asp:TextBox runat="server" ID="dataMonth" Text='<%# Bind("Month") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataMonth" runat="server" Display="Dynamic" ControlToValidate="dataMonth" ErrorMessage="Invalid value" MaximumValue="32767" MinimumValue="-32768" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Brand Code:</td>
				<td>
					<asp:TextBox runat="server" ID="dataBrandCode" Text='<%# Bind("BrandCode") %>' MaxLength="50"></asp:TextBox>
				</td>
			</tr>				
			
		</table>

	</ItemTemplate>
</asp:FormView>


